package com.dao;

import com.entity.AgentNewStatisticsVo;
import com.entity.AgentRankVo;
import com.entity.system.AgentNew;

import java.util.List;
import java.util.Map;

public interface AgentNewMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AgentNew record);

    int insertSelective(AgentNew record);

    AgentNew selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AgentNew record);

    int updateByPrimaryKey(AgentNew record);

    List<AgentNew> selectListVo(Map<String,String> map);

    AgentNew findByUserId(Long userId);

    List<Long> findUserIdByMap(Map<String,Object> map);
    
    List<AgentNewStatisticsVo> selectIncomeStatistics(Map<String,String> map);
    
    List<AgentNewStatisticsVo> queryAgentIncomeList(Map<String,String> map);
    
    int queryAgentIncomeListCount(Map<String,String> map);

    List<AgentNew> findListByUserId(List<Long> ids);

    List<AgentRankVo> findAgentRank(Map<String,Object> map);

}